@extends('layouts.master')

@section('title')
    帮助中心——木投网商城管理后台
@stop

@section('app_css')
    <link href="/resource/css/bootstrap.min.css" rel="stylesheet">
    <link rel="stylesheet" type="text/css" href="/resource/css/style.css">
    <link rel="stylesheet" href="/resource/css/dataTables.bootstrap.css">
    <link rel="stylesheet" href="/resource/css/fileinput.min.css">
@stop

@section('app_js')
    <script src="/resource/js/jquery-1.11.3.min.js"></script>
    <script src="/resource/js/jquery.dataTables.min.js"></script>
    <script src="/resource/js/dataTables.bootstrap.min.js"></script>
@stop


@section('content')
    @include('common.nav')
<div class="container-fluid">
    <div class="row" id="navLeft">
        @include('common.other_nav')
        <div class="col-lg-10">
            <div class="navbottom">
              <span>您的位置：</span>其他 > 帮助中心
            </div>
            <div class="contentNav">
              <ul>
                <li>其他</li>
                <li class="btn btn-default active"><a href="/show_help">列表</a></li>
                <li class="btn btn-default"><a href="/add_help">新增</a></li>
              </ul>
            </div>
            <hr>
            <div class="contentMember">
              <form class="form-inline">
                <div class="form-group">
                  <label>名称</label>
                  <input type="text" class="form-control" placeholder="">
                </div>
                <button type="submit" class="btn btn-default">搜索</button>
              </form>
              <hr>
              <table class="table table-striped table-bordered bootstrap-datatable datatable table-hover" id="example">
                <thead>
                  <tr>
                    <th>名称</th>
                    <th>操作</th>
                  </tr>
                </thead>
                <tbody>
                @foreach($helps as $k => $help)
                    <tr>
                        <td><input type="checkbox" name="demo"></td>
                        <td>{{ $help->name }}</td>
                        <td>{{ $help->content }}</td>
                        <td><a href="/edit_help?rec_id={{ $help->rec_id }}">编辑</a> | <a href="/delete_help?rec_id={{ $help->rec_id }}">删除</a></td>
                    </tr>
                @endforeach
                </tbody>
              </table>
            </div>
            {{ $helps->links() }}
        </div>
    </div>
</div>
@stop